import request from "@/utils/request";

/**
 * 城市列表api接口集合
 * @method getList 列表
 * @method postAdd 新增
 * @method putEdit 修改
 * @method deleteDel 删除
 */

export function getList(params) {
    return request({
        url: "/mes/mesApplyProductController/list",
        method: "get",
        params
    });
}
export function postAdd(data) {
    return request({
        url: "/mes/mesApplyProductController/add",
        method: "post",
        data: data
    });
}
export function putEdit(data) {
    return request({
        url: "/mes/mesApplyProductController/edit",
        method: "put",
        data: data
    });
}
export function deleteDel(ids) {
    return request({
        url: "/mes/mesApplyProductController/" + ids,
        method: "delete"
    });
}
export function getObject(id){
    return request({
        url: "/mes/mesApplyProductController/" + id,
        method:'get'
    });
}
export function moveDown(data) {
    return request({
        url: "/mes/mesApplyProductController/moveDown",
        method: "post",
        data: data
    });
}
export function moveUp(data) {
    return request({
        url: "/mes/mesApplyProductController/moveUp",
        method: "post",
        data: data
    });
}
